package com.ericsson.smart.factory;

import com.ericsson.smart.UtilityDimensionDAO;

public class UtilityDimnDAOFactory {

	public UtilityDimensionDAO getDimensionDAO(String dimnName) {
		if (dimnName.equalsIgnoreCase("DIM_GEOGRAPHY")) {
			return new UtilityDimensionDAO();
		} else if(dimnName.equalsIgnoreCase("DIM_TIME")) {
			return new UtilityDimensionDAO();
		} else if(dimnName.equalsIgnoreCase("DIM_SUBSTATION")) {
			return new UtilityDimensionDAO();
		} else if(dimnName.equalsIgnoreCase("DIM_CUSTOMER")) {
			return new UtilityDimensionDAO();
		} else if(dimnName.equalsIgnoreCase("DIM_TRANSFORMER_METER_TYPE")) {
			return new UtilityDimensionDAO();
		} else if(dimnName.equalsIgnoreCase("DIM_SEVERITY")) {
			return new UtilityDimensionDAO();
		} 		
		else {
			return null;
		}	
	}
	
	
//	public UtilityDimensionDAO getDimensionDAO(String dimnName) {
//		if (dimnName.equalsIgnoreCase("Geography"))
//			return new UtilityDimensionDAO();
//		return null;
//	}
}
